package com.yubest.remotecall.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * call spring-cloud-server1
 * 需要在启动类添加：@EnableFeignClients
 */
@FeignClient(value = "spring-cloud-server1", fallback = HelloServiceFeignHystrix.class)
public interface HelloServiceFeign {

    @GetMapping(value = "/hello")
    String hello();

}
